import request from '../utils/request'

export function login (data) {
  return request({
    url: '/v1_0/authorizations',
    method: 'post',
    data
  })
}

export function getProfile () {
  return request({
    url: '/v1_0/user/profile',
    method: 'get'
    // headers: {
    //   Authorization: `Bearer ${token}`
    // }
  })
}
